#include "sha1.h"
#include <stdio.h>
#include <string.h>

int main()
{
    // be98dd7e9d71f94f83ef721326da671a38fb66a2
    unsigned char strBuf[] = "Hello Sha1";
    int nSize = strlen((char*)strBuf);
    unsigned char strOut[1024];
    Sha1Encrypt(strBuf, nSize, strOut);

    for (int i = 0; i < 20; i++)
    {
        printf("%x", strOut[i]);
    }
    puts("");

    return 0;
}